package com.cyy.partner.pojo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: cyy
 * @Date: 2024/5/5
 */
@Data
public class Records {
    private Long id;
    private Long userId;
    private Long activityId;
    private LocalDateTime time;
    @TableLogic
    private Integer state;

    public Records(Long userId, Long activityId) {
        this.userId = userId;
        this.activityId = activityId;
        this.time = LocalDateTime.now();
    }
}
